package com.zuxia.exception;

import com.zuxia.utils.ResultCodeEnum;
import lombok.Data;

/**
 * @className: BusinessException
 * @Description: TODO
 * @version: v1.８.0
 * @author: Liuxin-G
 * @date: 2024/10/31 10:01
 */
@Data
public class ZuxiaBusinessException extends RuntimeException{
    private Integer code;

    private String message;

    public ZuxiaBusinessException(ResultCodeEnum resultCodeEnum){
        this.code = resultCodeEnum.getCode();
        this.message = resultCodeEnum.getMessage();
    }
    public ZuxiaBusinessException(){

    }
}